![]() |
SetComponentInstanceError |
||||
Header: | Components.h | Carbon status: | Supported | |
Passes error information to the Component Manager which sets the current error value for the appropriate connection.
void SetComponentInstanceError ( ComponentInstance aComponentInstance, OSErr theError );
The connection for which to set the error. The Component Manager provides a component instance to your component when the connection is opened. The Component Manager also provides a component instance to your component as the first parameter in the params field of the parameters structure.
The new value for the current error.
In general, your component returns error information in its function result; a nonzero function result indicates an error occurred, and a function result of 0 indicates the request was successful. However, some requests require that your component return other information as its function result. In these cases, your component can use this function to report its latest error state to the Component Manager. You can also use this function at any time during your component’s execution to report an error.
Applications retrieve this error information by calling the GetComponentInstanceError function. The documentation for your component should specify how the component indicates errors.
Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)